package com.sie.plm.rpm.standar.vo;

import java.math.BigInteger;
import java.util.List;

public class EnumTreeVO {
    private BigInteger oid;
    private String otype;
    private String name;

    public void setOid(BigInteger oid) {
        this.oid = oid;
    }

    private String displayName;
    private String description;
    private Integer systemNode;
    private List<EnumTreeVO> children;

    public void setOtype(String otype) {
        this.otype = otype;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setSystemNode(Integer systemNode) {
        this.systemNode = systemNode;
    }

    public void setChildren(List<EnumTreeVO> children) {
        this.children = children;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof EnumTreeVO)) {
            return false;
        }
        EnumTreeVO other = (EnumTreeVO) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$systemNode = getSystemNode(), other$systemNode = other.getSystemNode();
        if ((this$systemNode == null) ? (other$systemNode != null) : !this$systemNode.equals(other$systemNode)) {
            return false;
        }
        Object this$oid = getOid(), other$oid = other.getOid();
        if ((this$oid == null) ? (other$oid != null) : !this$oid.equals(other$oid)) {
            return false;
        }
        Object this$otype = getOtype(), other$otype = other.getOtype();
        if ((this$otype == null) ? (other$otype != null) : !this$otype.equals(other$otype)) {
            return false;
        }
        Object this$name = getName(), other$name = other.getName();
        if ((this$name == null) ? (other$name != null) : !this$name.equals(other$name)) {
            return false;
        }
        Object this$displayName = getDisplayName(), other$displayName = other.getDisplayName();
        if ((this$displayName == null) ? (other$displayName != null) : !this$displayName.equals(other$displayName)) {
            return false;
        }
        Object this$description = getDescription(), other$description = other.getDescription();
        if ((this$description == null) ? (other$description != null) : !this$description.equals(other$description)) {
            return false;
        }
        Object this$children =  getChildren(), other$children =  other.getChildren();
        return !((this$children == null) ? (other$children != null) : !this$children.equals(other$children));
    }

    protected boolean canEqual(Object other) {
        return other instanceof EnumTreeVO;
    }

    public int hashCode() {
        int PRIME = 59,
        result = 1;
        Object $systemNode = getSystemNode();
        result = result * 59 + (($systemNode == null) ? 43 : $systemNode.hashCode());
        Object $oid = getOid();
        result = result * 59 + (($oid == null) ? 43 : $oid.hashCode());
        Object $otype = getOtype();
        result = result * 59 + (($otype == null) ? 43 : $otype.hashCode());
        Object $name = getName();
        result = result * 59 + (($name == null) ? 43 : $name.hashCode());
        Object $displayName = getDisplayName();
        result = result * 59 + (($displayName == null) ? 43 : $displayName.hashCode());
        Object $description = getDescription();
        result = result * 59 + (($description == null) ? 43 : $description.hashCode());
        Object $children =  getChildren();
        return result * 59 + (($children == null) ? 43 : $children.hashCode());
    }

    public String toString() {
        return "EnumTreeVO(oid=" + getOid() + ", otype=" + getOtype() + ", name=" + getName() + ", displayName=" + getDisplayName() + ", description=" + getDescription() + ", systemNode=" + getSystemNode() + ", children=" + getChildren() + ")";
    }


    public BigInteger getOid() {
        return this.oid;
    }


    public String getOtype() {
        return this.otype;
    }


    public String getName() {
        return this.name;
    }


    public String getDisplayName() {
        return this.displayName;
    }


    public String getDescription() {
        return this.description;
    }


    public Integer getSystemNode() {
        return this.systemNode;
    }


    public List<EnumTreeVO> getChildren() {
        return this.children;
    }
}
